using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace HamcoWcs.Entitys.Logs
{
    public class WcsRunLogConfig : IEntityTypeConfiguration<WcsRunLog>
    {
        public void Configure(EntityTypeBuilder<WcsRunLog> builder)
        {
            builder.HasComment("wcs运行日志");
            builder.Property(x => x.UnitId).HasMaxLength(30).HasComment("托盘号");
            builder.Property(x => x.MsgValue).IsRequired().HasMaxLength(1024).HasComment("消息内容");
        }
    }
}